package com.atguigu.service;

import com.atguigu.pojo.Page;
import com.atguigu.pojo.Server;
import com.atguigu.pojo.Container;

import java.util.List;

//在container中建立containerService,定义containerServiceImpl需要实现的方法
public interface ContainerService {
    public void addContainer(Container container);
    public void updateContainer(Container container);
    public void deleteContainerById(String id);
    public Container queryContainerById(String id);
    public List<Container> queryContainersByServerId(String serverId);
    public List<Container> queryContainersByName(String containerName);
    public List<Container> queryContainersByServerIdAndContainerName(String serverId,String containerName);
    public List<Container> queryContainers();
    public Page page(Integer pageNo, Integer pageSize);
}
